<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'userManager.jsp' starting page</title>
    <link href="${pageContext.request.contextPath }/css/waimaistyle.css"
	type=text/css rel=stylesheet />
  </head>
  
  <body>
   	<p align="center">用户信息显示</p>
   		<table  align="center" border="1" cellspacing="0" cellpadding="20"
					class="table">
			<tr>
				<td>用户编号</td>
				<td>用户昵称</td>
				<td>用户电话</td>
				<td>用户密码</td>
				<td>用户余额</td>
				<td>操作</td>
			</tr>
			<c:forEach items="${users }" var="u">
				<tr>
					<td>${u.userId }</td>
					<td>${u.userName }</td>
					<td>${u.phone }</td>
					<td>${u.password }</td>
					<td>${u.balance }</td>
					<td>
						<a href="${pageContext.request.contextPath }/admin/toUserOrder?userId=${u.userId}">订单</a>
						<a href="${pageContext.request.contextPath }/admin/toUserComment?userId=${u.userId}">评论</a>
					</td>
					
				</tr>
			</c:forEach>
		</table>
  </body>
</html>
